home *** CD-ROM | disk | FTP | other *** search
/ Maclife 129 / MACLIFE129.ISO.7z / MACLIFE129.ISO / mac / MACLIFE連載 / AppleScript / FaceSpan 3.0 Demo Installer.sit / FaceSpan 3.0 Demo Installer / FaceSpan 3.0 Demo / FaceSpan Additions.rsrc / TEXT_5104.txt < prev    next >
Text File  |  1998-03-28  |  1KB  |  27 lines

  1. The format property allows you to define how the number will appear. Common formats include:
  2.  
  3. Currency
  4. '$'###,###,###.00
  5. '$'###,###,###
  6. '$'###,###,###.00;('$'###,###,###00)
  7. '$'###,###,###;('$'###,###,###)
  8.  
  9. Integers
  10. ###,###,###
  11.  
  12. Real Numbers
  13. ###,###,###.0000
  14. ###,###,###.####
  15.  
  16. More complicated format strings may be devised. The rules are as follows:
  17. 1. The format string may consist of 1, 2 or 3 parts separated by a semicolon.
  18. 2. If a second part is specified, it is used for negative numbers, otherwise the first part is used for negative numbers.
  19. 3. If a third part is specified, it is used for zero, otherwise the first part is used for negative numbers.
  20. 4. The digits of the actual number will occupy the spaces defined by one of the following three characters: #, ^, 0. They differ in their behavior when not needed to accomodate a digit. The # character is simply deleted when not needed. The ^ character is replaced with a space if not needed.  The 0 character remains a zero if not needed.
  21. 5. Commas may be used as digit group separators.
  22. 6. A plus or minus sign may be used.
  23. 7. A E may be used to denote scientific notation
  24. 8. Parenthesis may be used anywhere
  25. 9. Any other sequence of characters may be used if enclosed in single quotes.
  26. 10. A single quote may be used if preceeded by a backslash ¥
  27.